const conf=require('../../../conf.js');
const merge=require('webpack-merge');
const styleLoaders=require('./style-loaders')
const vueLoaderConfig=require('./vue-loader.conf.js')
var output=conf.output;
var loaders=[{
		test: /\.ejs$/,
		use: {
			'loader': 'ejs-loader'
		}
	},{
		test:/\.ts$/,
		use:{
			"loader":'ts-loader'
		}
	},{
		test:/\.vue$/,
		loader: 'vue-loader',
        options: vueLoaderConfig
	},{
		test: /\.html|.tpl$/,
		use: {
			'loader': "jcy-loader"
		}
	}, {
		test: /\.js$/,
		use: {
			loader: 'babel-loader'
		}
	}, {
		test: /\.(png|jpe?g|gif|svg|webp)(\?.*)?$/,
		loader: 'url-loader',
		options: {
			limit: 3000,
			name:output.images+"/[name].[ext]"
		}
	}, {
		test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
		loader: 'url-loader'
	}, {
		test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
		loader: 'url-loader'
	}];
module.exports=loaders.concat(styleLoaders);
